<?php if ( ! defined('WDK_PATH')) exit('No direct script access allowed');?>
<!--{**************************************************************************}-->
<style>
ul.tabmenu		{list-style: none;margin: 0px;padding: 0px;}
ul.tabmenu li	{float:left;margin:0px;}
ul.tabmenu li a	{padding:0px;border:1px solid #EEE;}
</style>
<!--{**************************************************************************}-->
<table id="listTable" class="list">
	<caption> 
		<form id="attendForm" action="" method="POST">
		오늘의 한마디 :
		<input type="text" name="user_attend_memo" class="input" value="{rand_memo}" style="width:400px"/>
		<a class="btn" id="btn_attend">출석체크</a>
		</form>
	</caption>
	<colgroup>
		<col style="width:140px;"/>
		<col style="width:140px;"/>
		<col style="width:*;"/>
		<col style="width:80px;"/>
		<col style="width:100px;"/>
	</colgroup>
	<thead>
		<tr>
			<th>출석시간</th>
			<th>사용자</th>
			<th>한마디</th>
			<th>출석포인트</th>
			<th>개근</th>
		</tr>
	</thead>
	<tbody>
		<!--{@ lists }-->
		<tr>
			<td class="tc">{.date} {.insert_time}</td>
			<td class="tc to">{.user_nick}</td>
			<td>{.memo}</td>
			<td class="tc to">{.point} 점</td>
			<td class="tc">{.continue} 일</td>			
		</tr>
		<!--{/}-->
	</tbody>
</table>
{# plugin listmanager #}
<!--{**************************************************************************}-->
<script>
(function($){
	$('#btn_attend').click(function(){
		if($.trim($('#attendForm>:text').val()) == '')
		{
			alert('오늘의 한마디를 입력해주십시오.');
			return $('#attendForm>:text').focus();
		}
		$('#attendForm').submit();
	});
})(jQuery);
</script>
<!--{**************************************************************************}-->